#!/bin/bash

# Script to query partition information.  This script is intended for use
# by Service Agent and will invoke the lspartition command.
#
# Usage:
#     lsPARTITION <parms>
#
#     <parms>  valid parms sent to lspartition
#
#     For example:     lsPARTITION -c machType-machModel_machSerial  
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
#
# Module History:
# 00 04/16/2004  M. Gregor     Initial release

actzTrace "ESA    T: -> lsPARTITION $*"

if (($# < 2)); then                                                        
   actzTrace 'ESA    F: Missing required argument(s).'
   exit 1
fi

/opt/hsc/bin/lspartition $1 $2

actzTrace 'ESA    T: <- lsPARTITION'

exit 0
